/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Cristina
 */
public class Ticket implements Serializable{

    private int userId;
    private int ticketSeries;
    private String destination;
    private String departure;
    private String arrivalDate;
    private String departureDate;
    private double price;
    private double discount = 0;
    private TicketType type = TicketType.OneWay;
    private int routeId;

    //Get and set methods:

    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }

    public int getTicketSeries() { return ticketSeries;  }
    public void setTicketSeries(int ticketSeries)
    {
        this.ticketSeries = ticketSeries;
    }

    public String getDestination() { return destination; }
    public void setDestination(String destination)
    {
        this.destination = destination;
    }

    public String getDeparture() { return departure;  }
    public void setDeparture(String departure) { this.departure = departure; }

    public String getArrivalDate() { return arrivalDate; }
    public void setArrivalDate(String arrivalDate) { this.arrivalDate = arrivalDate; }

    public String getDepartureDate() { return departureDate; }
    public void setDepartureDate(String departureDate)
    {
        this.departureDate = departureDate;
    }

    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }

    public double getDiscount() { return discount; }
    public void setDiscount(double discount)
    {
        this.discount = discount;
    }
    
    public TicketType getType() { return type; }
    public void setType(TicketType type) { this.type = type;  }

    public int getRouteId() { return routeId; }
    public void setRouteId(int routeId) { this.routeId = routeId; }




}
